// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// 导入静态的css文件
import './assets/css/footer.css'
import './assets/css/global.css'
import './assets/css/header.css'
import './assets/css/index.css'
import './assets/css/main.css'
import './assets/css/shop.css'
import './assets/css/user.css'
//引入element-ui
import ElementUI from 'element-ui'
import "element-ui/lib/theme-chalk/index.css"

Vue.use(ElementUI)//要注册了才能用

//引入request.js,用于导入axios（也就是request.js中导出的send）
import axios from './util/request'

//给axios设置为vue的原属性
Vue.prototype.$axios = axios
//给图片设置一个统一前缀
Vue.prototype.$imgPrefix = "http://localhost:8086/"


Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})